package com.example.demo.main.lang;


import org.junit.jupiter.api.Test;

/**
 * @author xieluoyin
 *  2018/8/18 14:41
 */
class RuntimeTest {

    @Test
    void availableProcessors(){
        //获取cpu核数
        int availProcessors = Runtime.getRuntime().availableProcessors();
        System.out.println("avail processors count: " + availProcessors);
    }
}
